<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/includes/common-import.jsp"%>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
	<meta charset="utf-8" />
	<title>${systemName}</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<%@ include file="/WEB-INF/includes/common-component-edit.jsp"%>
</head>
<body class="page-header-fixed">
	<%@ include file="/WEB-INF/includes/header.jsp"%>
	<div class="page-container row-fluid">
		<%@ include file="/WEB-INF/includes/leftMenu.jsp"%>
		<div class="page-content">
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<h3 class="page-title">
							评价类别/评价项目管理
						</h3>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">
					<div class="span12">
						<div class="portlet box blue" id="form_wizard_1">
							<div class="portlet-title">
								<div class="caption">
									<i class="icon-reorder"></i> 基本信息
								</div>
							</div>
							<div class="portlet-body form">
								<form id="inputForm" class="form-horizontal" action="${basePath}kind/${action}" method="post" >
									<input type="hidden" name="id" value="${kind.id }"/>
									<div class="alert alert-error ${empty MESSAGE ?'hide':'' }">
										<button class="close" data-dismiss="alert"></button>
										<span>${MESSAGE }</span>
									</div>
									
									<div class="control-group"> 
									   <label class="control-label"> 
									       编码<span class="required">*</span> 
									   </label> 
									   <div class="controls"> 
									       <input name="code" class="span6 m-wrap required" type="text" value="${kind.code}"> 
									   </div> 
									</div> 
									<div class="control-group"> 
									   <label class="control-label"> 
									       评价类别名称<span class="required">*</span> 
									   </label> 
									   <div class="controls"> 
									       <input name="kindName" class="span6 m-wrap required" type="text" value="${kind.kindName}"> 
									   </div> 
									</div> 
									<div class="control-group"> 
									   <label class="control-label"> 
									       评价定义/描述<span class="required">*</span> 
									   </label> 
									   <div class="controls"> 
									       <input name="remark" class="span6 m-wrap required" type="text" value="${kind.remark}"> 
									   </div> 
									</div> 
									<c:if test="${action=='update'}">
										<div class="control-group"> 
										   <label class="control-label"> 
											考核项目<span class="required">*</span> 
										   </label> 
										   <div class="controls"> 
										       <table class="table table-striped table-bordered table-hover" id="sample_1">
													<thead>
														<tr>
															<th style="width:40px;">序号</th>
															<th>考核项目名称</th> 
														</tr>
													</thead>
													<tbody>
														<c:forEach items="${kindItemList}" var="list" varStatus="status">
															<tr class="odd gradeX">
																<td>${status.index+1 }</td>
																<td>${list.itemName }</td>
															</tr>
														</c:forEach>
													</tbody>
												</table>
										   </div> 
										</div> 
									</c:if>
									<div class="form-actions clearfix">
										
										<button class="btn blue" type="submit"><i class="icon-ok"></i>完成</button>
										&nbsp;&nbsp;
										<a class="btn" onclick="cancle();">取消</a>
			
									</div>
								</form>
							</div>

						</div>

					</div>

				</div>
			</div>
		</div>
	</div>
	<script src="${resPath}media/js/app.js"></script>   
	<script>
		function cancle(){
			window.location = "${basePath}kind";
		}
	</script>
</body>
</html>
